package tanke;

import javax.swing.JFrame;


public class DrawTank extends JFrame{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	MyPanel mp = null;

	public DrawTank() {
		mp = new MyPanel();
		
		this.add(mp);
		Thread t =new Thread(mp);
		t.start();
		this.addKeyListener(mp);
		this.setSize(600, 600);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
	
		DrawTank dt = new DrawTank();
	}
}

	